package com.woniu.order.feign;



import com.woniu.entity.Result;
import com.woniu.order.pojo.Coupons;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;


@FeignClient(value = "order-service", path = "/coupons",contextId = "seckillFeign")
public interface CouponsSeckillFeignClient {


    @GetMapping("/list")
    public Result<List<Coupons>> listSeckill();

  /*  @GetMapping("/{id}")
    public Result<Coupons> getById(@PathVariable("id") Integer id);*/

    //修改库存
    @GetMapping("/updateCouponsById/{id})")
    public Result updateById(@PathVariable("id") Integer id);
}
